from lib.log.index import exception_logger
from lib.service.index import service_manager
from lib.config.index import firmware_config

print(
    f"firmware: {firmware_config.get_version()}({firmware_config.get_date()}), {firmware_config.get_author()}"
)

### load examples
def load_sync_example():
    from examples.lm35 import button_tts

def load_services():
    try:
        service_manager.load_startup_services()
    except Exception as e:
        exception_logger.log(e)

#选择执行异步任务或者同步
#load_sync_example()
load_services()
